package cn.mugutu.finance.dto;

import lombok.Data;

import java.util.List;


@Data
public class BaseResult {

    private boolean success;
    private String content;
    private Object data;

    public BaseResult() {
        super();
    }

    public BaseResult(boolean success, String content) {
        super();
        this.success = success;
        this.content = content;
    }


    public BaseResult(boolean success, String content, Object data) {
        super();
        this.success = success;
        this.content = content;
        this.data = data;
    }


    /**
     * EasyUI返回的结果集
     *
     * @author gan
     * @Date 2016年5月27日下午2:48:11
     */
    @Data
    public static class EasyUIResult<T> {

        private int total;
        private List<T> rows;

        public EasyUIResult() {
            super();
        }

        public EasyUIResult(int total, List<T> rows) {
            super();
            this.total = total;
            this.rows = rows;
        }


    }
}
